﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Example24
{
    class Crectangle{
        int x;
        int y;
        public void SetValues(int a,int b){
            x=a;
            y=b;
        }
        public int Area(){
            return(x*y);
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            Crectangle recta = new Crectangle();
            Crectangle rectb = new Crectangle();
            recta.SetValues(3, 4);
            rectb.SetValues(5, 6);
            Console.WriteLine("rect a:{0}",recta.Area());
            Console.WriteLine("rect a:{0}",rectb.Area());
        }
    }
}
